//
// api.js
// vue3-element-admin
//
// Created by 区区电脑 on 2023/04/11.
//


import request from "@/request"
import axios from "@/request/axios.js"


// 添加
export function AddProgramUI(params = {}, data = {}, onProgress = () =>{}) {
    return axios({url: '/api/ProgramUI/AddProgramUI', method: 'post', params, data, upload: true, onProgress})
}
// 修改
export function UpdateProgramUI(params = {}, data = {}, onProgress = () =>{}) {
    return axios({url: '/api/ProgramUI/UpdateProgramUI', method: 'post', params, data, upload: true, onProgress})
}

// 删除
export function DeleteProgramUI(params = {}) {
    return request({url: '/api/ProgramUI/DeleteProgramUI', method: 'delete', params})
}

// 分页
export function GetProgramUIPageList(params = {}, data = {}) {
    return request({url: '/api/ProgramUI/GetProgramUIPageList', method: 'post', params, data})
}

/**
 * 查询程序列表
 * @param data
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function GetProgramList(data = {}) {
    return request({url: "/api/Program/GetProgramList", method: "post", data})
}

/**
 * 查询版本列表
 * @param data
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function GetVersionList(data = {}) {
    return request({url: "/api/Version/GetVersionList", method: "post", data})
}